Skip to content

fix(aria/combobox): fix autocomplete examples and add comments explaining combobox selection behavior#32714

Open
adolgachev wants to merge 1 commit intoangular:mainfrom
adolgachev:aria-combobox-nav
Open

fix(aria/combobox): fix autocomplete examples and add comments explaining combobox selection behavior#32714
adolgachev wants to merge 1 commit intoangular:mainfrom
adolgachev:aria-combobox-nav

Conversation

@adolgachev
Copy link
Contributor

@adolgachev adolgachev commented Jan 27, 2026

Autocomplete examples were actually incorrectly using ngModel to populate the input value, which was colliding with the ngComboboxInput usage of [value} so clearing the query did not work properly.

Updated all the examples to check and clear the value on the ComboboxInput instead.

Also added clarifying comments in the Combox behavior logic which checks for an active item, then drops it, but then checks again when selecting.

@adolgachev adolgachev marked this pull request as ready for review January 29, 2026 19:17
@pullapprove pullapprove bot requested review from mmalerba and tjshiu January 29, 2026 19:17
@adolgachev adolgachev added Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer action: presubmit The PR is in need of a google3 presubmit dev-app preview When applied, previews of the dev-app are deployed to Firebase labels Jan 29, 2026
@github-actions
Copy link

github-actions bot commented Jan 29, 2026

Deployed dev-app for a8d39f8 to: https://ng-dev-previews-comp--pr-angular-components-32714-dev-3240cirt.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

Copy link
Contributor

@tjshiu tjshiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatted about it - might need some more investigation time. Seems to work inconsistently.

@adolgachev adolgachev changed the title fix(aria/combobox): fix selection via keyboard by passing proper item fix(aria/combobox): fix autocomplete examples and add comments explaining combobox selection behavior Feb 5, 2026
@mmalerba mmalerba removed their request for review February 5, 2026 18:43
@pullapprove pullapprove bot requested a review from wagnermaciel February 5, 2026 18:43
@adolgachev adolgachev requested review from ok7sai and removed request for wagnermaciel February 5, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accessibility This issue is related to accessibility (a11y) action: presubmit The PR is in need of a google3 presubmit action: review The PR is still awaiting reviews from at least one requested reviewer dev-app preview When applied, previews of the dev-app are deployed to Firebase target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants